<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <script>
        var obj = [
            {
                "isSelected": true,
                "name": "纸上行舟",
                "count": 3,
                "id": "0001"
            },
            {
                "isSelected": true,
                "name": "我可能得抑郁症了！舟",
                "count": 2,
                "id": "0002"
            },
            {
                "isSelected": true,
                "name": "绕日飞行",
                "count": 4,
                "id": "0003"
            }
        ]

        var res=[];
        for(let i=0;i<obj.length;i++){
            var{id,name}=obj[i];
            res.push(
                {id,name}
            )
        }
        console.log(res)
    </script>
</body>

</html>